﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ext.Net;

namespace Viewer.NguoiDung.UserControl
{
    public partial class UCThemToChuc : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public void BindData()
        {
            this.storeToChuc.DataSource = (new BusinessObject.BusinessEntities.QUNhomQuyenByToChuc()).GetAllWithCurrentUserOwner();
            this.storeToChuc.DataBind();
            this.PagingToolbar1.PageSize = 15;
            Ext.Net.X.AddScript("SynDataBetween2Store();");
        }
        public void ShowDialogThemToChuc()
        {
            BindData();
            wdThemToChuc.Show();
        }
        [DirectMethod]
        public void ReloadData()
        {
            BindData();
        }
    }
}
